include ../Makefile.inc

$(OBJ_DIR)/proc_mgmt.o : proc_mgmt.cpp proc_mgmt.h $(INCLUDE_DIR)/tcetools/socket.h
	-mkdir -p $(OBJ_DIR)
	-mkdir -p $(INCLUDE_DIR)/tcetools
	-cp -f proc_mgmt.h $(INCLUDE_DIR)/tcetools/
	$(CXX) $(INCLUDES) $< -c -o $@

$(INCLUDE_DIR)/tcetools/socket.h : force_look
	cd ../sockets; $(MAKE) $(MFLAGS)

clean:
	rm -f objs/*.o
	rm -f $(INCLUDE_DIR)/tcetools/proc_mgmt.h
	
force_look:
	true

lib: $(OBJ_DIR)/proc_mgmt.o
	ar rsc $(TOOLS_LIB_FILE) $(OBJ_DIR)/proc_mgmt.o